package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户日志对象 t_user_log
 * 
 * @author ruoyi
 * @date 2024-04-16
 */
public class TUserLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户日志表 */
    private Long id;

    /** 访问ip */
    @Excel(name = "访问ip")
    private String loginIp;

    /** 用户信息 */
    @Excel(name = "用户信息")
    private Long userId;

    /** 手机型号 */
    @Excel(name = "手机型号")
    private String phoneType;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 操作类型（1-登录，2-提现） */
    @Excel(name = "操作类型", readConverterExp = "1=-登录，2-提现")
    private Integer type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setLoginIp(String loginIp) 
    {
        this.loginIp = loginIp;
    }

    public String getLoginIp() 
    {
        return loginIp;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPhoneType(String phoneType) 
    {
        this.phoneType = phoneType;
    }

    public String getPhoneType() 
    {
        return phoneType;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("loginIp", getLoginIp())
            .append("userId", getUserId())
            .append("phoneType", getPhoneType())
            .append("remark", getRemark())
            .append("address", getAddress())
            .append("type", getType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
